package com.colt.usercenter.domain.entity.signRecord;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import javax.persistence.*;

@Table(name = "sign_record")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SignRecord {
    /**
     * 用户表的id
     */
    @Id
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 签到月份，形如2019-02
     */
    @Column(name = "date_month")
    private String dateMonth;

    /**
     * 用户本月连续签到的天数
     */
    @Column(name = "continue_sign_month")
    private Integer continueSignMonth;

    /**
     * 获取用户表的id
     *
     * @return user_id - 用户表的id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户表的id
     *
     * @param userId 用户表的id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取签到月份，形如2019-02
     *
     * @return date_month - 签到月份，形如2019-02
     */
    public String getDateMonth() {
        return dateMonth;
    }

    /**
     * 设置签到月份，形如2019-02
     *
     * @param dateMonth 签到月份，形如2019-02
     */
    public void setDateMonth(String dateMonth) {
        this.dateMonth = dateMonth;
    }

    /**
     * 获取用户本月连续签到的天数
     *
     * @return continue_sign_month - 用户本月连续签到的天数
     */
    public Integer getContinueSignMonth() {
        return continueSignMonth;
    }

    /**
     * 设置用户本月连续签到的天数
     *
     * @param continueSignMonth 用户本月连续签到的天数
     */
    public void setContinueSignMonth(Integer continueSignMonth) {
        this.continueSignMonth = continueSignMonth;
    }
}